<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>login</h1>
    <form action="http://localhost:8080/login" method="post">
        用户名 <input type="text" name="user" id=""><br>
        密码： <input type="text" name="password" id=""><br>
        <input type="submit" value="登录">
    </form>
    <!-- form 默认可以发送数据给后台 -->
</body>
</html>